<template>
  <div>
    我是第{{sonUl.id}}组件
    <ul>
      <li>我的名字是{{sonUl.uname}}</li>
      <li>我的姓是{{sonUl.famliyName}}</li>
      <li>我的年龄是{{sonUl.age}}</li>
      <li>我的职业是{{sonUl.profess}}</li>
      <button @click="growUp">今年又长了一岁</button>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'SonComponent',
  data() {
    return {}
  },
props:['sonUl','sonId'],
methods:{
  growUp(){
    this.$emit('fatherAge',this.sonId)
  }
}
}
</script>

<style scoped></style>
